package com.library.lms.service.impl;

import com.library.lms.dao.UserInfoMapper;
import com.library.lms.entity.UserInfo;
import com.library.lms.service.UserInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    private UserInfoMapper userInfoMapper;

    @Override
    public int addUserInfo(UserInfo userInfo) {
        return userInfoMapper.insertUserInfo(userInfo);
    }
}
